
#ifdef CONFIG_SMP
void set_rq_online(struct rq *rq)
{
    if (!rq->online)
    {
        const struct sched_class *class;

        cpumask_set_cpu(rq->cpu, rq->rd->online);
        rq->online = 1;

        for_each_class(class)
        {
            if (class->rq_online)
                class->rq_online(rq);
        }
    }
}
#endif
